from sys import path

from django.conf.urls import url
from django.urls import path

from .views import *

from django.contrib import admin
from django.urls import path, include

urlpatterns = [
    path('channels/', ChannelView.as_view({'get': 'list'})),
    path('article/<str:id>/channel/', ArticleView.as_view({'get': 'list'})),
    path('article/', ArticleView.as_view({'post': 'create'})),
    path('labels/', LabelListAPIView.as_view()),
    path('articles/search/', QueryListView.as_view()),

]
